//使用localStorage的时候最好加上try catch  避免因浏览器问题导致整个程序报错
let defaultCity = "北京";
try {
  if (localStorage.city) {
    defaultCity = localStorage.city;
  }
} catch (error) {
  console.log(error);
}

export default {
  city: defaultCity
};
